/*
 * CommunicationRobot11.h
 *
 *  Created on: 15/11/2013
 *      Author: gonzalo
 */

#ifndef COMMUNICATIONROBOT11_H_
#define COMMUNICATIONROBOT11_H_

#include <iostream>
#include "CommunicationRobotPiezas.h"

namespace middleware {

class CommunicationRobot11 : public CommunicationRobotPiezas {
public:
	CommunicationRobot11(char key);
	static void create(char key);
	static void destroy(char key);
	void esperarRobot12();
	void robot12EstaListo();
	virtual ~CommunicationRobot11();
	virtual std::string getNombre();
private:
	ipc::Semaphore semEsperaRobot12;
	static const std::string ROBOT11_SEM_PATH;
	static const std::string ROBOT11_SHMEM_PATH;
};

} /* namespace middleware */
#endif /* COMMUNICATIONROBOT11_H_ */
